* {
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2d3436;
}

.loader {
    width: 48px;
    height: 48px;
    position: relative;
    /* background-color: aquamarine; */
    animation: rotation 1s linear infinite;
}

.loader::before, .loader::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: brown;
}

.loader::before {
    top: 0;
    background-color: #6fa110;
    animation: scale 1s infinite ease-in-out alternate;
}

.loader::after {
    bottom: 0;
    background-color: #df4141;
    animation: scale 1s 0.5s infinite ease-in-out alternate;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scale{
    0% {
        transform: scale(1)
    }
    100% {
        transform: scale(0)
    }
}